package org.amphiprion.kidcalendar.entity;

import java.util.List;

public class Configuration {
	private List<Kid> kids;
	private List<RuleGroup> ruleGroups;
	private List<VacationCalendar> vacationCalendars;

	public List<Kid> getKids() {
		return kids;
	}

	public void setKids(List<Kid> kids) {
		this.kids = kids;
	}

	public List<RuleGroup> getRuleGroups() {
		return ruleGroups;
	}

	public void setRuleGroups(List<RuleGroup> ruleGroups) {
		this.ruleGroups = ruleGroups;
	}

	public RuleGroup getRuleGroup(String id) {
		for (RuleGroup rg : ruleGroups) {
			if (rg.getId().equals(id)) {
				return rg;
			}
		}
		return null;
	}

	public List<VacationCalendar> getVacationCalendars() {
		return vacationCalendars;
	}

	public VacationCalendar getVacationCalendar(String id) {
		for (VacationCalendar vc : vacationCalendars) {
			if (vc.getId().equals(id)) {
				return vc;
			}
		}
		return null;
	}

	public void setVacationCalendars(List<VacationCalendar> vacationCalendars) {
		this.vacationCalendars = vacationCalendars;
	}

}
